﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity
{
    /// <summary>
    /// 分类表
    /// </summary>
    public class Category : BaseEntity, ITreeStructure<Category>
    {
        public Category()
        {
        }
        /// <summary>
        /// 分类名称　
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 父ＩＤ
        /// </summary>
        public long ParentID { get; set; }
        /// <summary>
        /// 排序依据
        /// </summary>
        public int SortNumber { get; set; }


        public int Level { get; set; }

        /// <summary>
        /// 是否选中
        /// </summary>
        public bool IsSelected { get; set; }


        public List<Category> Children
        {
            get;
            set;
        }

        public Category Parent
        {
            get;
            set;
        }


    }
 
}
